<?php
class MComponent {
    /**
     * @var MRequest
     */
    protected $_request;
    /**
     * @var MResponse
     */
    protected $_response;

    public function getRequest() {
        return $this->_request;
    }

    public function setRequest($_request) {
        $this->_request = $_request;
    }

    public function getResponse() {
        return $this->_response;
    }

    public function setResponse($_response) {
        $this->_response = $_response;
    }

    public function getModulePath(){
        return BASE_PATH.DS.Mandrill::getApp()->modulesFolder.DS.$this->_request->getModule();
    }

    public function getTemplatePath(){
        return MTemplate::getInstance()->getAbsoluteDirectoryPath();
    }
}
?>
